# unprinted_designs = ['phone case', 'robot pendant']
# completed_models = []

# while unprinted_designs:
#     current_design = unprinted_designs.pop()
#     print(f"Printing model: {current_design}")
#     completed_models.append(current_design)

# print("\nThe following models have been printed:")
# for completed_model in completed_models:
#     print(completed_model)


import printing_functions

unprinted_designs = ['phone case', 'robot pendant']
completed_models = []

printing_functions.print_models(unprinted_designs[:], completed_models) # 列表切片表示法list[:]，传入的是副本
printing_functions.show_completed_models(completed_models) # 在函数中对列表的修改是永久的（应该是类似于C的指针传入）

printing_functions.show_completed_models(unprinted_designs)

# 切片表示法
# list[a:b]
# 表示列表list从a到b-1的切片副本
# 若不写默认前位为0，后位一直到最后一位